<template>
  <div class="toast" v-show="ifShow">{{ content }}</div>
</template>

<script setup>
import { ref, onMounted } from "vue"
const props = defineProps({
  content: '',
  isShow: true
})
const ifShow = ref(props.isShow)
onMounted(() => {

})
</script>

<style lang="scss" scoped>
@import '@/css/variables.scss';
@import '@/css/mixins.scss';

.toast {
  position: fixed;
  left: 50%;
  top: 50px;
  transform: translate(-50%, -50%);
  padding: 0.1rem;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 0.05rem;
  color: $bgColor;
}
</style>
